using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Acms.AcmsControls
{
    [ToolboxData("<{0}:LoginControlDisplay runat=server></{0}:LoginControlDisplay>")]
    public class LoginControlDisplay : BaseContentControlDisplay
    {
        private LoginControlPorperties properties;
        public LoginControlPorperties Properties
        {
            get 
            {
                if (properties == null)
                    properties = new LoginControlPorperties();
                return properties; 
            }
            set { properties = value; }
        }
	
        protected override BaseContentControlProperties GetProperties()
        {
            return properties;
        }

        protected override void SetProperties(BaseContentControlProperties properties)
        {
            this.properties = properties as LoginControlPorperties;
        }

        protected override void CreateChildControls()
        {
            this.Controls.Clear();
            UserLogonControl ctrl = new UserLogonControl();
            ctrl.ID = "LoginControl";
            this.Controls.Add(ctrl);
            base.CreateChildControls();
        }
    }
}
